//
//  GSYImageView.m
//  GoTraveling
//
//  Created by dllo on 15/12/24.
//  Copyright © 2015年 开发华佗. All rights reserved.
//

#import "GSYImageView.h"

@implementation GSYImageView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
}
- (void)createSubView {
    
    UIImageView *bgImageView = [[UIImageView alloc] initWithFrame:self.bounds];
    [bgImageView setImage:[UIImage imageNamed:@"poi_bg_placeholder"]];
    [self addSubview:bgImageView];
    
    UIImageView *bgLImageView = [[UIImageView alloc] initWithFrame:self.bounds];
    [bgLImageView setImage:[UIImage imageNamed:@"trips_cover_mask"]];
    [self addSubview:bgLImageView];
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width / 4, self.frame.size.height / 4, self.frame.size.width / 2, self.frame.size.height / 2)];
    [imageView setImage:[UIImage imageNamed:@"trip_edit_empty_content"]];
    imageView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:imageView];
    
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
